import { createLogger, createStore } from 'vuex'
import api from '../api/api'
/**
 * 创建仓库和导出
 */
export default createStore({
    state: {
        user : "",
        commentsData : [],
    },
    getters : {

    },
    mutations : {
        // 统一设置值
        setValue (state,obj) {
            for(let key in obj) {
                state[key] = obj[key]
            }
        }
    },
    actions : {
    }
})